package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetMealDao {
    void add(Setmeal setmeal);

    void addSetmealAndCheckGroupRelation(Map<String, Object> map);

    Page<Setmeal> findByQueryString(String queryString);

    Setmeal findById(Integer id);

    List<Setmeal> findAll();

    Setmeal findAllById(int id);

    List<Setmeal> findAllAndDetails();

    List<Integer> findCheckGroupById(Integer id);

    void editSetmealByid(Setmeal setmeal);

    void deleteSetmealRelationCheckGroupByid(Integer setmealId);

    void deleteById(Integer id);


    Integer findIdBySetmealname(String queryString);
}
